<template>
  <div class="box">
    <img :src="img">  
    <div class="box_start" @click="gohome">跳过</div>
  </div>
</template>

<script>
import { Toast } from "vant";
export default {
  data() {
    return {
      img:'https://img.zcool.cn/community/0158ca5631c2286ac72548780ca869.jpg@2o.jpg',
    };
  },
  // 注册组件
  components: {},
  created() {
    setTimeout(() => {
    this.$router.push({ path:'/home'  })
    }, 2000);
  },
  methods: {
    //   跳过
    gohome(){
        this.$router.push({ path:'/home'  })
    }
  }
};
</script>
<style scoped lang="less">
.box {
  width: 100vw;
  height: 100vh;
  padding: 0;
  margin: 0;
  img{
      width: 100%;
      height: 100%;
  }
  .box_start{
      position: absolute;
      top: 40px;
      right: 40px;
      color: #fff;
      border:1px solid #fff ;
      padding: 2px 15px;
      font-size: 14px;
      border-radius: 20px;
  }
}
</style>
